package com.wmz.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wmz.common.utils.PageUtils;
import com.wmz.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author wumingzi
 * @email wumingzi@gmail.com
 * @date 2024-07-21 14:03:48
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void deleteCategoryByCatIds(Long[] catIds);

    /**
     * 查询分组ID路径
     * @param catelogId 某一个具体的分组id
     * @return
     */
    Long[] findCatelogPath(Long catelogId);
}

